BINTARG   = fbp_cti

#
BINDIR = /usr/local/bin

#
CC  = gcc
LD  = gcc

#
CFLAGS = -c -Wall -I.
LDFLAGS = -lm

#
.ifdef _DEBUG_
    CFLAGS += -g
.else
    CFLAGS += -s -pipe -fomit-frame-pointer -O3
.endif

#
.PHONY: clean all install

.SUFFIXES:
.SUFFIXES: .o .s .f90 .mod .c

all: $(BINTARG)

.c.o:
	$(CC) $(CFLAGS) $<

fbp_cti: fbp_cti.h fbp_cti.o
	$(LD) $(LDFLAGS) $(.ALLSRC) -o $@
	strip $@

install: $(BINTARG)
	cp -pf $(.ALLSRC) $(BINDIR)

clean:
	rm -f *.o *~ $(BINTARG)
